package com.example.service.configuration.impl;

import com.example.bean.configuration.PingGuXiangGuanLi;
import com.example.bean.configuration.XiangZhiGuanLi;
import com.example.bean.configuration.vo.XiangZhiGuanLiVo;
import com.example.mapper.configuration.XiangZhiGuanLiMapper;
import com.example.service.configuration.XiangZhiGuanLiService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XiangZhiGuanLiServiceImpl implements XiangZhiGuanLiService {

    @Autowired
    XiangZhiGuanLiMapper mapper;

    @Override
    public PageInfo<XiangZhiGuanLi> getpage(XiangZhiGuanLiVo vo) {
        PageHelper.startPage(vo.getDqNum(),vo.getXsNum());
        PageInfo<XiangZhiGuanLi> page = new PageInfo<XiangZhiGuanLi>(mapper.getpage(vo));
        return page;
    }

    @Override
    public Integer addxiangzhiguanli(XiangZhiGuanLi xiangZhiGuanLi) {
        return mapper.addxzgl(xiangZhiGuanLi);
    }

    @Override
    public XiangZhiGuanLi getId(String aid) {
        return mapper.getId(aid);
    }

    @Override
    public Integer qidong(String noid) {
        return mapper.qidong(noid);
    }

    @Override
    public Integer jinyong(String noid) {
        return mapper.jinyong(noid);
    }

    @Override
    public Integer dels(List<String> ids) {
        return mapper.dels(ids);
    }

    @Override
    public Integer xiugai(XiangZhiGuanLi xiangZhiGuanLi) {
        return mapper.xiugai(xiangZhiGuanLi);
    }
}
